/**
 * ElementVisual.java
 * 
 * @authors: Connor Gordon, Difan Zhao, Kathleen Lan, Patrick Royal
 */

package view.visualComponent;


import java.awt.Graphics;

/**Interface for visualization object of individual Elements.
 * @author Kathleen Lan
 */
public interface ElementVisual {

    /**
     * Responds to a mouse click on a given point.
     * @param x x-coordinate
     * @param y y-coordinate
     * @return
     */
    String clickedOn(int x, int y);

    /**
     * Paint method.
     * @param g graphics object
     */
    void paint (Graphics g);

    /**
     * Tests to see if an object intersects with a visual element.
     * @param x x-coordinate
     * @param y y-coordinate
     * @param w width
     * @param h height
     * @return
     */
    boolean intersectsWithElementVisual(int x, int y, int w, int h);

}
